From f1490ed10715cf05edc9d6d1ff69254b5d8f0313 Mon Sep 17 00:00:00 2001 From: parkrrrr Date: Thu, 17 Mar 2005 16:31:29 +0000 Subject: [PATCH] made google 'real' again since output=js isn't likely to go away anytime soon. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@1088 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/README | 17 +++++++++++++++++ gpsbabel/google.c | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/gpsbabel/README b/gpsbabel/README index 5c3f32a89..d7b0d8538 100644 --- a/gpsbabel/README +++ b/gpsbabel/README @@ -755,6 +755,23 @@ THE FORMATS There are many features in this file format that we don't yet support, but simple waypoint lists convert fine. + GOOGLE + + This format is designed to read the XML emitted when you tack + "&output=js" onto the end of a Google Maps route URL (use the + "link to this page" option to get a usable URL.) This allows + you to plan a route using Google Maps, then download it and use + it in your own mapping program or GPS receiver. If you use a + Unix-compatible operating system, this shell script might be + useful: + + #!/bin/sh + FROM="233 S. Wacker, Chicago, IL" + TO="1060 W. Addison, Chicago, IL" + wget -O - "http://maps.google.com/maps?q=$FROM to $TO&output=js" \ + 2>/dev/null >google_map.js + + gpsbabel -i google -f google_map.js -o gpx -F google_map.gpx DATA FILTERS diff --git a/gpsbabel/google.c b/gpsbabel/google.c index ffdc918ea..200f3d215 100644 --- a/gpsbabel/google.c +++ b/gpsbabel/google.c @@ -200,7 +200,7 @@ google_rd_deinit(void) } ff_vecs_t google_vecs = { - ff_type_internal, + ff_type_file, { ff_cap_none, ff_cap_read, ff_cap_none}, google_rd_init, NULL, -- 2.30.2